<template>
  <div id="right">
    <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item><a href="/home">首页</a></el-breadcrumb-item>
    <el-breadcrumb-item>权限管理</el-breadcrumb-item>
    <el-breadcrumb-item>权限列表</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  name: 'Right',
  data() {
    return { 
      rightList: []
    }
  },
  created() {
    this.getRightList()
  },
  methods: {
    async getRightList() {
      const { data: res } = await this.$http.get('rights')
      if(res.meta.status !== 200) {
        return this.$message.error("获取权限列表数据失败!")
      }
      this.rightList = res.data
    }
  }
}
</script>

<style>
</style>
